package com.wcards.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author 大黑
 */
@ApiModel("收入信息表")
@Data
@TableName("income_info")
public class IncomeInfo implements Serializable {
    @ApiModelProperty("对象编号（若是商品售卖则是订单编号，若是爱心捐赠则是动物编号）")
    private Integer objectNumbers;
    @ApiModelProperty("收入类型（分为商品售卖和爱心捐赠）")
    private String incomeType;
    @ApiModelProperty("用户ID")
    private Integer userId;
    @ApiModelProperty("交易时间")
    private LocalDateTime transactionTime;
    @ApiModelProperty("成交价格")
    private Double transactionPrice;
    @TableId("income_numbers")
    @ApiModelProperty("收入编号")
    private Integer incomeNumbers;
    @ApiModelProperty("捐赠物品")
    private String transactionGoods;
}
